# # 生成一个测试文件，内容随机
#
# import random
#
# strs = list('brothersistermotherfatheruncle')
# size = 200000000  # 文件内容量，单位为字节
#
# with open('小测试.txt', 'w') as fp:
#     count = 1
#     while count <= size:
#         fp.write(strs[random.randint(0, len(strs) - 1)])
#         count += 1
#
#
# def FileRead(url = '小测试.txt', size = 1024 * 8):
#     with open(url, 'r') as fp:
#         count = 1
#         while count:
#             count = fp.read(size)
#             yield count
#
# file = FileRead()
# for i in file:
#     print(i)
